package com.xc.mapper;

import com.xc.dto.UserRoleDTO;
import com.xc.entity.UserRoleEntity;
import com.xc.entity.UserRoleManyEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserRoleMapper extends BaseMapper<UserRoleDTO, UserRoleEntity> {
    int addMany(List<UserRoleManyEntity> list);

    int deleteByUserId(List<Integer> list);

    List<UserRoleDTO> findByUserId(UserRoleEntity userRoleEntity);
}
